package com.spsy.pay.service;

import com.spsy.pay.vo.PayResult;

/**
 *  支付业务逻辑相关
 *  @author: liuzhiping
 * @date: 2024/12/12 16:04
 **/
public interface PayApiService {

    /***
     * 下单接口
     * @orderId 订单号
     * @return PayResult {@link PayResult }
     */
    PayResult pay(String orderId) throws  Exception;


    /***
     * 查询订单
     * @param orderId 订单号
     * @return {@link PayResult}
     * @throws Exception 异常
     */
    PayResult view(String orderId) throws  Exception;
}
